<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta Name="viewport" content="width=device-width, initial-scale=1.0">
    <title>添加教师</title>
    <link rel="stylesheet" href="/styles/student.css">
</head>
<body>
    <header>
        <div>
            <div>
                <i>👨🏫</i>
                <h1>教育查询系统 - 添加教师</h1>
            </div>
        </div>
    </header>

    <div class="form-container">
        <h2>添加新教师</h2>

        {{if .Error}}
        <div class="error-message">{{.Error}}</div>
        {{end}}

        <form action="/addteacher" method="POST">
            <div class="form-group">
                <label for="TeacherID">教师ID:</label>
                <input type="text" id="TeacherID" Name="TeacherID" required>
            </div>

            <div class="form-group">
                <label for="Name">教师姓名:</label>
                <input type="text" id="Name" Name="Name" required>
            </div>

            <button type="submit">添加教师</button>
        </form>
    <form action="/teacher" method="GET">
        <button type="submit" class="add-button">返回教师列表</button>
    </form>
    </div>
</body>
</html>